package com.design.movieticket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.design.movieticket.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
@SuperBuilder(toBuilder = true)
@TableName("Cinema")
public class Cinema extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    Long id;//影院id

    String cinemaLogo;//影院logo

    String cinemaNumber;//影院编号

    String cinemaName;//影院名

    String address;//影院地址

    String principal;//影院负责人

    String admin;//影院管理员

    int status;//影院状态/0停业 1营业 2休息

    String cinemaEmail;//影院邮箱

    String cinemaVx;//影院微信公众号

    String businessHours;//影院营业时间

    String cinemaPic;//影院图片

    LocalDateTime entryTime;//影院入驻时间
}
